Skip to content

[6.x] Multisite - Fix localization switch sending the browser to /entries/null - #15230

Merged
jasonvarga merged 1 commit into
6.xfrom
entries-null
Aug 27, 2026
Merged

[6.x] Multisite - Fix localization switch sending the browser to /entries/null#15230
jasonvarga merged 1 commit into
6.xfrom
entries-null

Conversation

@jaygeorge

Copy link
Copy Markdown
Contributor

Description of the Problem

Creating a new localization rewrites the browser URL to /entries/null.
Even though the page will continue to save, the URL does not change which means a refresh breaks the page.

2026-08-21 at 13 30 56@2x

What this PR Does

Wait until after a successful load before updating history so we don't stringify null into the path.

How to Reproduce

  1. Enable multisite
  2. On an entry, choose a localization that doesn't exist yet (e.g. origin confirmation modal appears)
  3. The URL switches to /entries/null and stays broken even after the localization is created; refreshing fails

Missing localizations have a null edit URL. Wait until after a successful load before updating history so we don't stringify null into the path.
@jasonvarga
jasonvarga merged commit 7a6794a into 6.x Aug 27, 2026
65 checks passed
@jasonvarga
jasonvarga deleted the entries-null branch August 27, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants